import ajax from '@/utils/ajax'
import dialog from '@/utils/dialog'

export default function (query) {
  // orderStatus 查对应状态的订单
  return ajax({
    url: `/a/order/listData?orderStatus=${query.orderStatus}`,
    data: query
  }).then(data => data || []).catch(() => dialog.showToast('请求失败'))
}
